// The Cave of No Return Custom Objects

beginscendatascript;

// --- TERRAINS ---

// Blocked view tree 1
begindefineterrain 421;
import = 151;
te_full_look_block = 1;

// tree 2
begindefineterrain 422;
import = 152;
te_full_look_block = 1;

// tree 3
begindefineterrain 423;
import = 153;
te_full_look_block = 1;

begindefineterrain 424;
import = 154;
te_full_look_block = 1;

begindefineterrain 425;
import = 280;
te_can_look_at = 1;

// --- ITEMS ---

// Book
begindefineitem 445;
	clear;
	it_name = "Book";
	it_full_name = "Alchemy and Whatnot";
	it_floor_which_sheet = 1026;
	it_floor_which_icon = 0;
	it_inventory_icon = 0;
	it_value = 1;
	it_variety = 21;
	it_weight = 10;
	it_identified = 1;
	it_ability_1 = 207;
	it_ability_str_1 = 10;
	it_special_class = 1;

begindefineitem 446;
	it_full_name = "Hellspawn and You";
	it_floor_which_icon = 1;
	it_inventory_icon = 1;
	it_ability_str_1 = 11;
	it_special_class = 2;

begindefineitem 450;
	clear;
	it_name = "Potion";
	it_full_name = "Balu's Elixir";
	it_floor_which_sheet = 1020;
	it_floor_which_icon = 3;
	it_inventory_icon = 4;
	it_icon_adjust = 4;
	it_value = 300;
	it_variety = 7;
	it_weight = 10;
	it_identified = 1;
	it_ability_1 = 203;
	it_ability_str_1 = 4;
	it_charges = 1;

// --- CREATURES ---

// Thief
begindefinecreature 234;
	clear;
	cr_name = "Thief";
	cr_level = 7;
	cr_hp_bonus = 20;
	cr_which_sheet = 1578;
	cr_attack_1 = 2;
	cr_attack_1_type = 4;
	cr_icon_adjust = 16;
	cr_default_courage = 85;
	cr_what_stat_adjust 0 = 1;
	cr_amount_stat_adjust 0 = 2;
	cr_start_item 1 = 55;
	cr_start_item_chance 2 = 100;
	cr_start_item 2 = 114;
	cr_start_item_chance 2 = 50;
	cr_start_item 3 = 137;
	cr_start_item_chance 3 = 50;
	cr_start_item 4 = 26;
	cr_start_item_chance 4 = 100;

// stronger version of Thief
begindefinecreature 235;
	cr_level = 9;
	cr_hp_bonus = 40;

// Master Thief
begindefinecreature 236;
	cr_name = "Master Thief";
	cr_level = 16;
	cr_hp_bonus = 25;
	cr_attack_1 = 5;
	cr_default_courage = 99;
	cr_what_stat_adjust 0 = 1;
	cr_amount_stat_adjust 0 = 4;
	cr_what_stat_adjust 1 = 2;
	cr_amount_stat_adjust 1 = -2;
	cr_start_item 1 = 27;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 56;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 114;
	cr_start_item_chance 3 = 50;
	cr_start_item 4 = 138;
	cr_start_item_chance 4 = 50;
	
// Swamp Spider
begindefinecreature 240;
	clear;
	cr_name = "Swamp Spider";
	cr_level = 12;
	cr_hp_bonus = 15;
	cr_species = 9;
	cr_attack_1 = 6;
	cr_special_abil = 1;
	cr_which_sheet = 1573;
	cr_icon_adjust = 256;
	cr_natural_armor = 5;
	cr_attack_1_type = 2;
	cr_summon_class = 3;
	cr_what_stat_adjust 0 = 1;
	cr_amount_stat_adjust 0 = 1;
	cr_what_stat_adjust 1 = 2;
	cr_amount_stat_adjust 1 = -5;
	cr_default_attitude = 4;
	cr_immunities 4 = 100;

begindefinecreature 245;
	clear;
	cr_name = "Ancient Guardian";
	cr_level = 20;
	cr_hp_bonus = 10;
	cr_species = 12;
	cr_attack_1 = 8;
	cr_which_sheet = 1646;
	cr_special_abil = 35;
	cr_icon_adjust = 129;
	cr_natural_armor = 12;
	cr_immunities 3 = 100;
	cr_immunities 4 = 100;

begindefinecreature 246;
	clear;
	cr_name = "Apparition";
	cr_level = 8;
	cr_hp_bonus = -10;
	cr_species = 12;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_attack_23_type = 8;
	cr_which_sheet = 1538;
	cr_special_abil = 8;
	cr_icon_adjust = 16;
	cr_default_attitude = 4;
	cr_immunities 1 = 100;
	cr_immunities 3 = 100;
	cr_immunities 4 = 100;
	cr_immunities 5 = 33;
	cr_what_stat_adjust 0 = 1;
	cr_amount_stat_adjust 0 = 2;

begindefinecreature 247;
	clear;
	cr_name = "Skeletal Fighter";
	cr_level = 10;
	cr_hp_bonus = 10;
	cr_species = 8;
	cr_attack_1 = 4;
	cr_which_sheet = 1535;
	cr_immunities 1 = 100;
	cr_immunities 4 = 100;
	cr_default_attitude = 4;
	cr_start_item 0 = 86;
	cr_start_item_chance 0 = 7;
	cr_start_item 1 = 203;
	cr_start_item_chance 1 = 5;
	cr_start_item 2 = 206;
	cr_start_item_chance 2 = 3;

begindefinecreature 248;
	clear;
	cr_name = "Corpsedweller";
	cr_level = 20;
	cr_species = 7;
	cr_default_attitude = 4;
	cr_attack_2 = 3;
	cr_attack_3 = 3;
	cr_attack_23_type = 1;
	cr_which_sheet = 1549;
	cr_natural_armor = 3;
	cr_immunities 0 = 100;
	cr_immunities 2 = 10;
	cr_immunities 4 = 80;

begindefinecreature 250;
	clear;
	cr_name = "Lich Guy";
	cr_level = 30;
	cr_hp_bonus = 50;
	cr_sp_bonus = 60;
	cr_species = 8;
	cr_which_sheet = 1540;
	cr_natural_armor = 5;
	cr_attack_1 = 4;
	cr_attack_1_type = 0;
	cr_default_attitude = 4;
	cr_default_strategy = 10;
	cr_ap_bonus = 1;
	cr_start_item 0 = 82;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 119;
	cr_start_item_chance 1 = 100;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 9;
	cr_what_stat_adjust 1 = 25;
	cr_amount_stat_adjust 1 = 8;
	cr_what_stat_adjust 2 = 26;
	cr_amount_stat_adjust 2 = 4;
	cr_what_stat_adjust 3 = 0;
	cr_amount_stat_adjust 3 = -6;
	cr_immunities 1 = 100;
	cr_immunities 2 = 35;
	cr_immunities 4 = 100;

begindefinecreature 251;
	import = 247;
	cr_name = "Skeletal Stinkbomb";
	cr_level = 13;
	cr_hp_bonus = -10;
	cr_special_abil = 38;
	cr_icon_adjust = 32;

begindefinecreature 252;
	cr_name = "Icy Skeleton";
	cr_hp_bonus = -20;
	cr_special_abil = 18;
	cr_icon_adjust = 512;

begindefinecreature 253;
	cr_name = "Fiery Skeleton";
	cr_special_abil = 17;
	cr_icon_adjust = 128;
	cr_immunities 0 = 100;

begindefinecreature 254;
	cr_name = "Slimy Skeleton";
	cr_level = 15;
	cr_hp_bonus = 10;
	cr_special_abil = 6;
	cr_icon_adjust = 256;
	cr_immunities 0 = 0;

begindefinecreature 249;
	clear;
	cr_name = "Bound Netherbeast";
	cr_level = 18;
	cr_species = 7;
	cr_default_attitude = 4;
	cr_attack_2 = 3;
	cr_attack_3 = 3;
	cr_attack_23_type = 1;
	cr_which_sheet = 1570;
	cr_natural_armor = 2;
	cr_immunities 0 = 100;
	cr_special_abil = 26;

begindefinecreature 255;
	clear;
	cr_name = "Bound Netherbeast";
	cr_level = 18;
	cr_ap_bonus = -1;
	cr_species = 7;
	cr_default_attitude = 4;
	cr_attack_1 = 5;
	cr_attack_1_type = 2;
	cr_which_sheet = 1612;
	cr_icon_adjust = 128;
	cr_immunities 0 = 100;
	cr_special_abil = 20;

begindefinecreature 241;
	clear;
	cr_name = "Hellish Goo";
	cr_level = 16;
	cr_hp_bonus = 10;
	cr_species = 10;
	cr_special_abil = 29;
	cr_immunities 0 = 100;
	cr_attack_1 = 3;
	cr_attack_1_type = 7;
	cr_default_attitude = 4;
	cr_which_sheet = 1586;
	cr_icon_adjust = 1;
	